import axiosServer from '../utils/request'
import axios from 'axios'
/**
 * 登录接口
 * @param {*} username 
 * @param {*} password 
 * @returns 
 */
export const RequestMemberLogin = (username:string,password:string)=>{
    return axiosServer({
        method:'post',
        url:'/api/member/login',
        data:{
            username,
            password
        }
    })
}

/**
 * 注册接口
 */
 export const RequestMembersignin = (username:string,password:string,nick:string,headerimg:string)=>{ 
    return axiosServer({
        method:'post',
        url:'/api/member/add',
        data:{
            username,
            password,
            nick,
            headerimg,
        }
    })
}



/**
 * 热门商品
 */
export const RequesetHotProduct =()=>{
    return axios({
        method:'get',
        url:'/api/type'
    })
}